# 作   者：要努力，努力，再努力
# 开发日期：2022/4/12 23:30
# 比较运算符
a, b = 10, 20
print("a>b吗？", a > b)  # false
print("a<b吗？", a < b)  # true
print("a<=b吗？", a <= b)  # true
print("a>=b吗？", a >= b)  # false
print("a==b吗？", a == b)  # false ==是比较运算符,比较的是值 =是赋值运算符
print("a!=b吗？", a != b)  # true

a = 10
b = 10
print(a == b)  # 说明的a与b的值相等
print(a is b)  # 说明的a与b的标识相等，用is去比较标识是否相同

list1 = [11, 22, 33, 44]
list2 = [11, 22, 33, 44]
print(list1 == list2)  # 比较value
print(list1 is list2)  # 比较id

print(id(list1))
print(id(list2))

print(a is not b)
print(list1 is not list2)

